<?php
/**
 * Created by PhpStorm.
 * User: Dave
 * Date: 2018/4/4
 * Time: 17:17
 */

namespace Biz\model;


class ShopLink extends \Doraemon\pockets\datebase\BaseDbModel
{
    const _CONFIG_FILE_ = 'db_shop';

    const _CONFIG_SELECT_ = 'db_shop';

    const _DATABASE_ = 'shop';

    const _TABLE_NAME = 'shop_link';

    public static function getLinkListByid($field = '*', $id)
    {

        return self::select($field, ['type' => $id]);
    }

    public static function getLinkByid($field = '*', $id)
    {

        return self::get($field, ['id' => $id]);
    }
}